function install (Vue, vm) {
	
	// 购物车
	let getOrderCart = (params = {}) => vm.$u.get('/order.cart/lists', params);
	
	// 加入购物车
	let postOrderCart = (params = {}) => vm.$u.post('/order.cart/add', params);
	
	// 减购物车
	let postOrderCartSub = (params = {}) => vm.$u.post('/order.cart/sub', params);
	
	// 获取普通确认订单
	let getOrderBuy = (params = {}) => vm.$u.get('/order.order/buy', params);
	
	// 获取购物车确认订单
	let getOrderCartSettle = (params = {}) => vm.$u.get('/order.order/cart', params);
	
	// 下单前确认配送范围
	let getOrderCheckScope = (params = {}) => vm.$u.get('order.order/checkScope', params);
	
	// 普通确认订单
	let postOrderBuy = (params = {}) => vm.$u.post('/order.order/buy', params);
	
	// 购物车确认订单
	let postOrderCartSettle = (params = {}) => vm.$u.post('/order.order/cart', params);
	
	// 订单列表
	let getOrder = (params = {}) => vm.$u.get('/user.order/lists', params);
	
	// 订单取消
	let getOrderCancel = (params = {}) => vm.$u.get('/user.order/cancel', params);
	
	// 订单详情
	let getOrderDetail = (params = {}) => vm.$u.get('/user.order/detail', params);
	
	// 删除购物车
	let postCartDelete = (params = {}) => vm.$u.get('/order.cart/delete', params);
	
	// 获取秒杀确认订单
	let getOrderSeckill = (params = {}) => vm.$u.get('/plus.seckill.order/buy', params);
	
	// 秒杀确认订单
	let postOrderSeckill = (params = {}) => vm.$u.post('/plus.seckill.order/buy', params);
	
	// 获取活动确认订单
	let getOrderActivity = (params = {}) => vm.$u.get('/plus.activity.order/buy', params);
	
	// 活动确认订单
	let postOrderActivity = (params = {}) => vm.$u.post('/plus.activity.order/buy', params);
	
	// 获取拼团确认订单
	let getOrderAssemble = (params = {}) => vm.$u.get('/plus.assemble.order/buy', params);
	
	// 拼团确认订单
	let postOrderAssemble = (params = {}) => vm.$u.post('/plus.assemble.order/buy', params);
	
	// 获取评论订单
	let getOrderComment = (params = {}) => vm.$u.get('/user.comment/order', params);
	
	// 提交评论订单
	let postOrderComment = (params = {}) => vm.$u.post('/user.comment/order', params);
	
	// 评论列表
	let getComment = (params = {}) => vm.$u.get('/product.comment/lists', params);
	
	// 获取当月推荐订单及当日用户统计
	let getDayinvite = (params = {}) => vm.$u.get('/user.index/getdayinvite', params);
	
	// 获取当月推荐订单统计
	let getInviteList = (params = {}) => vm.$u.get('/order.order/getinvitelist', params);

	// 获取推广列表数据
	let getUserInviteList = (params = {}) => vm.$u.get('/promotion.user/getinvitelist', params);

	// 获取获奖列表
	let getPrizeList = (params = {}) => vm.$u.get('/promotion.user/getPrizeList', params);
	
	// 获取推广红包
	let getInviteConList = (params = {}) => vm.$u.get('/promotion.user/getinvitesetting', params);

	// 限时优惠购买
	let getDiscountList = (params = {}) => vm.$u.get('/plus.discount.order/buy', params);
	
	// 限时优惠购买确认订单
	let postDiscountList = (params = {}) => vm.$u.post('/plus.discount.order/buy', params);

	// 助力活动
	let getBargainList = (params = {}) => vm.$u.get('/plus.bargain.order/buy', params);
	
	// 助力活动确认订单
	let postBargainList = (params = {}) => vm.$u.post('/plus.bargain.order/buy', params);
	
	// 确认地址
	let CheckSelectAddress = (params = {}) => vm.$u.get('/order.order/selectaddress', params);
	
	// 确认商品
	let CheckStoreProduct = (params = {}) => vm.$u.get('/order.order/checkstoreproducts', params);
	
	return {
		getOrderActivity,
		getOrderCart,
		postOrderCart,
		postOrderCartSub,
		getOrderBuy,
		getOrderCartSettle,
		getOrderCheckScope,
		postOrderBuy,
		postOrderCartSettle,
		getOrder,
		getOrderCancel,
		getOrderDetail,
		postCartDelete,
		getOrderSeckill,
		postOrderSeckill,
		getOrderAssemble,
		postOrderAssemble,
		getOrderComment,
		postOrderComment,
		getComment,
		getDayinvite,
		getInviteList,
		getUserInviteList,
		getPrizeList,
		postOrderActivity,
		getInviteConList,
		getDiscountList,
		postDiscountList,
		getBargainList,
		postBargainList,
		CheckSelectAddress,
		CheckStoreProduct
	};
}

export default install